package com.juzipi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.juzipi.inter.mapper.PaperMapper;
import com.juzipi.inter.mapper.UserMapper;
import com.juzipi.inter.pojo.Paper;
import com.juzipi.inter.pojo.User;
import com.juzipi.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author juzipi
 * @Date 2021/4/29 15:32
 * @Info
 */
@Service
public class PaperServiceImpl extends ServiceImpl<PaperMapper, Paper> implements PaperService {


    @Autowired
    private PaperMapper paperMapper;

    @Override
    public List<Paper> queryAllPaper() {
        return paperMapper.selectList(null);
    }

    @Override
    public Paper queryPaperById(Long paperId) {
        return paperMapper.selectById(paperId);
    }

}
